package com.fyt.spring.cloud.project.controller;

import com.fyt.spring.cloud.PO.GardenEquipmentPO;
import com.fyt.spring.cloud.project.service.GardenEquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "gardenEquipment")
public class GardenEquipmentController {
    @Autowired
    private GardenEquipmentService gardenEquipmentService;

    /**
     * 获取所有设备信息
     * */
    @GetMapping(value = "list")
    public List<GardenEquipmentPO> list(){
        return gardenEquipmentService.list();
    }
}
